package com.sunleader.netboot.module.machine.dto;

import com.sunleader.netboot.module.machine.model.Machine;
import lombok.Data;

@Data
public class MachineDto {

    private String mac;
    private String name;
    private String ip;
    private String router;
    private String subnet;
    private String rom;
    private String status;

    public Machine parseToDo(){
        return Machine.builder()
                .mac(mac)
                .name(name)
                .ip(ip)
                .router(router)
                .subnet(subnet)
                .rom(rom)
                .needReload(false)
                .status("init")
                .build();
    }
}
